/*
 * @Description: 
 * @Version: 1.0
 * @Author: Ausen
 * @Date: 2023-03-16 10:08:59
 * @LastEditors: Ausen
 * @LastEditTime: 2023-04-15 10:10:00
 */
/**************************** (C) COPYRIGHT 2017 Fortiortech shenzhen *****************************
* File Name          : PIOInit.h
* Author             : Fortiortech Appliction Team
* Version            : V1.0
* Date               : 10-Apr-2017
* Description        : This file contains all the common data types used for
*                      Motor Control.
***************************************************************************************************
* All Rights Reserved
**************************************************************************************************/

/* Define to prevent recursive inclusion --------------------------------------------------------*/
#ifndef __PIOINIT_H_
#define __PIOINIT_H_

#define ON 1
#define OFF 0

#define B(a)  \
    if (a)        \
    {             \
        GP05 = 1; \
    }             \
    else          \
    {             \
        GP05 = 0; \
    }

#define G(a)  \
    if (a)        \
    {             \
        GP06 = 1; \
    }             \
    else          \
    {             \
        GP06 = 0; \
    }

#define R(a)  \
    if (a)        \
    {             \
        GP07 = 1; \
    }             \
    else          \
    {             \
        GP07 = 0; \
    }

#define LED_OFF   \
    {             \
        GP07 = 0; \
        GP05 = 0; \
        GP06 = 0; \
    }

    
/* Exported functions ---------------------------------------------------------------------------*/
extern void GPIO_Init(void);

#endif